/**
 * @ author: 汪孟苹
 */
define(["jquery",
	"scprit/followup/app/comm/page/page.servers.js"],function($,$pageServers){
	var event = {};

	event.trun = function(options,callback,params,callback2){
		$("#" + options.id + " .page .btn-toolbar button").click(function(){
			var pageClick = $(this).text();
			options = $.extend(options,{"pageClick":pageClick});
			params.page = $pageServers.getPageActive(options);
			if(callback && typeof callback == "function"){
			 	(params,callback2) ? callback(params,callback2) : callback();
			}
		});
	}

	return event;
});